#ifndef _AK_RTSP_H_
#define _AK_RTSP_H_

struct rtsp_param {
    void *vi_handle;

    /* camera config */
    int main_width;
    int main_height;
    int sub_width;
    int sub_height;

    /* video encode config */
    int min_qp;
    int max_qp;
    int gop_len;
	int video_mode;
	int method;

    int v720p_fps;
    int v720p_max_kbps;
    int vga_fps;
    int vga_max_kbps;
};

/**
 * ak_rtsp_get_version - get rtsp version
 * return: version string
 */
const char* ak_rtsp_get_version(void);

/**
 * ak_rtsp_init - create a thread to check net,
 *			only if the device get a ip address we would start the rtsp service
 * @param: rtsp config param
 * return: 0 -> success, -1 -> failed
 */
int ak_rtsp_init(struct rtsp_param *param);

/* modify GOP len atfer capture frame changed. */
void ak_rtsp_switch_gop(void);

/**
 * ak_rtsp_exit - exit rtsp app
 * @void
 * return: void
 */
void ak_rtsp_exit(void);

#endif
